function loginOrReg(id) {
	request = new XMLHttpRequest();
	var url = 'http://localhost/GoldenAge/php/logreg.php?par=' + id;

	request.onreadystatechange = update;

	request.open("GET", url, true);
	request.send(null);

	
}

function update() {
	if (request.readyState == 4 && request.status == 200) {

		document.getElementById("content-login-reg").innerHTML = request.responseText;
	}
}